import request from '@/utils/request'
import FormatPackage from '@/utils/response-format-package'

export function getSignRewardList(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/sign/list',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function signRewardDelete(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/sign/delete',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}

export function signRewardSort(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/sign/sort',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function signRewardAdd(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/sign/add',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function signRewardUpdate(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/sign/update',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
